<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <!-- Make IE8 behave like IE7, necessary for charts -->


        <title>Admin Control Panel</title>
        <link href="css/login.css" rel="stylesheet" type="text/css" />

        <script type="text/javascript">
            function login()
            {
                //day la lenh dung de lay du lieu tu 2 form nhap user va password
                //gan 2 gia tri do cho 2 bien user,password
                user=document.dulieu.username.value;
                password=document.dulieu.password.value;
                //kiem tra neu dung thi cho chay trang web can vao
                if(user=="admin" && password=="admin")
                {
                    //day la ham chuyen den trang web can xem
                    window.location="AdminNhomMua.jsp";
                }
                else
                {
                    //neu ko dung thi bao ko thanh cong
                    alert("Thất Bại");

                }
                return false;
            }
        </script>
    </head>

    <body>


        <div id="logo">
            <img src="Images/logo.jpeg" alt="logopng" width="116" height="34" /> <!--//  Logo on upper corner -->
        </div>


        <div class="box">
            <div class="welcome" id="welcometitle">Welcome to ProAdmin, Please Login: <!--//  Welcome message -->
            </div>

            <form onsubmit="return login();" method="POST" enctype="text/plain" name="dulieu">
                <div id="fields"> 
                    <table width="333">
                        <tr>
                            <td width="79" height="35"><span class="login">USERNAME</span></td>
                            <td width="244" height="35"><label>
                                    <input name="username" type="text" class="fields" id="username" size="30" />  <!--//  Username field  -->
                                </label></td>
                        </tr>


                        <tr>
                            <td height="35"><span class="login">PASSWORD</span></td>
                            <td height="35"><input name="password" type="password" class="fields" id="password" size="30" /></td> <!--//  Password field -->
                        </tr>


                        <tr>
                            <td height="65">&nbsp;</td>
                            <td height="65" valign="middle"><label>
                                    <input name="button" type="submit" class="button" id="button" value="LOGIN" />
                                    <!--//  login button -->
                                </label></td>
                        </tr>
                    </table>
                </div>
            </form>

            <div class="login" id="lostpassword"><a href="#">Lost Password?</a></div> <!--//  lost password part -->

            <div class="copyright" id="copyright">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Mauris risus mauris.<br />
                <!--//  copyright / footer -->
                Copyright &copy; Company People 2008.
                <a href="index-2.html">Back to index.</a></div>
        </div>



    </body>
</html>